<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>Rails</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="../css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../css/main.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../css/github.css" type="text/css" media="screen" />
<script src="../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/main.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>

</head>

<body>     
    <div class="banner">
        
            <span>Ruby on Rails v4.0.0</span><br />
        
        <h1>
            <span class="type">Module</span> 
            Rails 
            
        </h1>
        <ul class="files">
            
            <li><a href="../files/railties/lib/rails_rb.html">railties/lib/rails.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/api/task_rb.html">railties/lib/rails/api/task.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/app_rails_loader_rb.html">railties/lib/rails/app_rails_loader.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/application_rb.html">railties/lib/rails/application.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/application/bootstrap_rb.html">railties/lib/rails/application/bootstrap.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/application/configuration_rb.html">railties/lib/rails/application/configuration.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/application/finisher_rb.html">railties/lib/rails/application/finisher.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/application/routes_reloader_rb.html">railties/lib/rails/application/routes_reloader.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/backtrace_cleaner_rb.html">railties/lib/rails/backtrace_cleaner.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/commands/application_rb.html">railties/lib/rails/commands/application.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/commands/console_rb.html">railties/lib/rails/commands/console.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/commands/dbconsole_rb.html">railties/lib/rails/commands/dbconsole.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/commands/server_rb.html">railties/lib/rails/commands/server.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/configuration_rb.html">railties/lib/rails/configuration.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/console/app_rb.html">railties/lib/rails/console/app.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/console/helpers_rb.html">railties/lib/rails/console/helpers.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/deprecation_rb.html">railties/lib/rails/deprecation.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/engine_rb.html">railties/lib/rails/engine.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/engine/configuration_rb.html">railties/lib/rails/engine/configuration.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/engine/railties_rb.html">railties/lib/rails/engine/railties.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators_rb.html">railties/lib/rails/generators.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/actions_rb.html">railties/lib/rails/generators/actions.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/active_model_rb.html">railties/lib/rails/generators/active_model.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/app_base_rb.html">railties/lib/rails/generators/app_base.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/base_rb.html">railties/lib/rails/generators/base.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/generated_attribute_rb.html">railties/lib/rails/generators/generated_attribute.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/migration_rb.html">railties/lib/rails/generators/migration.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/named_base_rb.html">railties/lib/rails/generators/named_base.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/rails/app/app_generator_rb.html">railties/lib/rails/generators/rails/app/app_generator.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/rails/assets/assets_generator_rb.html">railties/lib/rails/generators/rails/assets/assets_generator.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/rails/controller/controller_generator_rb.html">railties/lib/rails/generators/rails/controller/controller_generator.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/rails/generator/generator_generator_rb.html">railties/lib/rails/generators/rails/generator/generator_generator.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/rails/helper/helper_generator_rb.html">railties/lib/rails/generators/rails/helper/helper_generator.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/rails/integration_test/integration_test_generator_rb.html">railties/lib/rails/generators/rails/integration_test/integration_test_generator.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/rails/migration/migration_generator_rb.html">railties/lib/rails/generators/rails/migration/migration_generator.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/rails/model/model_generator_rb.html">railties/lib/rails/generators/rails/model/model_generator.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/rails/plugin_new/plugin_new_generator_rb.html">railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/rails/resource/resource_generator_rb.html">railties/lib/rails/generators/rails/resource/resource_generator.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/rails/resource_route/resource_route_generator_rb.html">railties/lib/rails/generators/rails/resource_route/resource_route_generator.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/rails/scaffold/scaffold_generator_rb.html">railties/lib/rails/generators/rails/scaffold/scaffold_generator.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator_rb.html">railties/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/rails/task/task_generator_rb.html">railties/lib/rails/generators/rails/task/task_generator.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/resource_helpers_rb.html">railties/lib/rails/generators/resource_helpers.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/test_case_rb.html">railties/lib/rails/generators/test_case.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/testing/assertions_rb.html">railties/lib/rails/generators/testing/assertions.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/testing/behaviour_rb.html">railties/lib/rails/generators/testing/behaviour.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/generators/testing/setup_and_teardown_rb.html">railties/lib/rails/generators/testing/setup_and_teardown.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/info_rb.html">railties/lib/rails/info.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/initializable_rb.html">railties/lib/rails/initializable.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/paths_rb.html">railties/lib/rails/paths.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/rack_rb.html">railties/lib/rails/rack.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/rack/debugger_rb.html">railties/lib/rails/rack/debugger.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/rack/log_tailer_rb.html">railties/lib/rails/rack/log_tailer.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/rack/logger_rb.html">railties/lib/rails/rack/logger.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/railtie_rb.html">railties/lib/rails/railtie.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/railtie/configurable_rb.html">railties/lib/rails/railtie/configurable.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/railtie/configuration_rb.html">railties/lib/rails/railtie/configuration.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/test_unit/railtie_rb.html">railties/lib/rails/test_unit/railtie.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/test_unit/sub_test_task_rb.html">railties/lib/rails/test_unit/sub_test_task.rb</a></li>
            
            <li><a href="../files/railties/lib/rails/version_rb.html">railties/lib/rails/version.rb</a></li>
            
        </ul>
    </div>
    <div id="bodyContent">
        <div id="content">
  


  


  
  


  
    <!-- Namespace -->
    <div class="sectiontitle">Namespace</div>
    <ul>
      
        <li>
          <span class="type">MODULE</span>
          <a href="Rails/API.html">Rails::API</a>
        </li>
      
        <li>
          <span class="type">MODULE</span>
          <a href="Rails/AppRailsLoader.html">Rails::AppRailsLoader</a>
        </li>
      
        <li>
          <span class="type">MODULE</span>
          <a href="Rails/Configuration.html">Rails::Configuration</a>
        </li>
      
        <li>
          <span class="type">MODULE</span>
          <a href="Rails/ConsoleMethods.html">Rails::ConsoleMethods</a>
        </li>
      
        <li>
          <span class="type">MODULE</span>
          <a href="Rails/Generators.html">Rails::Generators</a>
        </li>
      
        <li>
          <span class="type">MODULE</span>
          <a href="Rails/Info.html">Rails::Info</a>
        </li>
      
        <li>
          <span class="type">MODULE</span>
          <a href="Rails/Initializable.html">Rails::Initializable</a>
        </li>
      
        <li>
          <span class="type">MODULE</span>
          <a href="Rails/Paths.html">Rails::Paths</a>
        </li>
      
        <li>
          <span class="type">MODULE</span>
          <a href="Rails/Rack.html">Rails::Rack</a>
        </li>
      
        <li>
          <span class="type">MODULE</span>
          <a href="Rails/VERSION.html">Rails::VERSION</a>
        </li>
      
        <li>
          <span class="type">CLASS</span>
          <a href="Rails/AppBuilder.html">Rails::AppBuilder</a>
        </li>
      
        <li>
          <span class="type">CLASS</span>
          <a href="Rails/Application.html">Rails::Application</a>
        </li>
      
        <li>
          <span class="type">CLASS</span>
          <a href="Rails/BacktraceCleaner.html">Rails::BacktraceCleaner</a>
        </li>
      
        <li>
          <span class="type">CLASS</span>
          <a href="Rails/Console.html">Rails::Console</a>
        </li>
      
        <li>
          <span class="type">CLASS</span>
          <a href="Rails/DBConsole.html">Rails::DBConsole</a>
        </li>
      
        <li>
          <span class="type">CLASS</span>
          <a href="Rails/DeprecatedConstant.html">Rails::DeprecatedConstant</a>
        </li>
      
        <li>
          <span class="type">CLASS</span>
          <a href="Rails/Engine.html">Rails::Engine</a>
        </li>
      
        <li>
          <span class="type">CLASS</span>
          <a href="Rails/PluginBuilder.html">Rails::PluginBuilder</a>
        </li>
      
        <li>
          <span class="type">CLASS</span>
          <a href="Rails/Railtie.html">Rails::Railtie</a>
        </li>
      
        <li>
          <span class="type">CLASS</span>
          <a href="Rails/Server.html">Rails::Server</a>
        </li>
      
        <li>
          <span class="type">CLASS</span>
          <a href="Rails/TestTask.html">Rails::TestTask</a>
        </li>
      
        <li>
          <span class="type">CLASS</span>
          <a href="Rails/TestUnitRailtie.html">Rails::TestUnitRailtie</a>
        </li>
      
    </ul>
  


  
    <!-- Method ref -->
    <div class="sectiontitle">Methods</div>
    <dl class="methods">
      
        <dt>B</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="Rails.html#method-c-backtrace_cleaner">backtrace_cleaner</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>C</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="Rails.html#method-c-configuration">configuration</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>E</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="Rails.html#method-c-env">env</a>,
              </li>
            
              
              <li>
                <a href="Rails.html#method-c-env-3D">env=</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>G</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="Rails.html#method-c-groups">groups</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>I</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="Rails.html#method-c-initialize-21">initialize!</a>,
              </li>
            
              
              <li>
                <a href="Rails.html#method-c-initialized-3F">initialized?</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>P</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="Rails.html#method-c-public_path">public_path</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>R</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="Rails.html#method-c-root">root</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>V</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="Rails.html#method-c-version">version</a>
              </li>
            
          </ul>
        </dd>
      
    </dl>
  

  



  

    

    

    


    
      <!-- Section attributes -->
      <div class="sectiontitle">Attributes</div>
      <table border='0' cellpadding='5'>
        
          <tr valign='top'>
            <td class='attr-rw'>
              [RW]
            </td>
            <td class='attr-name'>application</td>
            <td class='attr-desc'></td>
          </tr>
        
          <tr valign='top'>
            <td class='attr-rw'>
              [RW]
            </td>
            <td class='attr-name'>cache</td>
            <td class='attr-desc'></td>
          </tr>
        
          <tr valign='top'>
            <td class='attr-rw'>
              [RW]
            </td>
            <td class='attr-name'>logger</td>
            <td class='attr-desc'></td>
          </tr>
        
      </table>
    


    <!-- Methods -->
    
      <div class="sectiontitle">Class Public methods</div>
      
        <div class="method">
          <div class="title method-title" id="method-c-backtrace_cleaner">
            
              <b>backtrace_cleaner</b>()
            
            <a href="Rails.html#method-c-backtrace_cleaner" name="method-c-backtrace_cleaner" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-c-backtrace_cleaner_source')" id="l_method-c-backtrace_cleaner_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/ceb3b8717beb9818fbfbab429a8aa697591e184a/railties/lib/rails.rb#L43" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-c-backtrace_cleaner_source" class="dyn-source">
                <pre><span class="ruby-comment"># File railties/lib/rails.rb, line 43</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">backtrace_cleaner</span>
  <span class="ruby-ivar">@backtrace_cleaner</span> <span class="ruby-operator">||=</span> <span class="ruby-keyword">begin</span>
    <span class="ruby-comment"># Relies on Active Support, so we have to lazy load to postpone definition until AS has been loaded</span>
    <span class="ruby-identifier">require</span> <span class="ruby-string">'rails/backtrace_cleaner'</span>
    <span class="ruby-constant">Rails</span><span class="ruby-operator">::</span><span class="ruby-constant">BacktraceCleaner</span>.<span class="ruby-identifier">new</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-c-configuration">
            
              <b>configuration</b>()
            
            <a href="Rails.html#method-c-configuration" name="method-c-configuration" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              <p>The <a href="Rails/Configuration.html">Configuration</a> instance used to
configure the <a href="Rails.html">Rails</a> environment</p>
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-c-configuration_source')" id="l_method-c-configuration_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/ceb3b8717beb9818fbfbab429a8aa697591e184a/railties/lib/rails.rb#L31" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-c-configuration_source" class="dyn-source">
                <pre><span class="ruby-comment"># File railties/lib/rails.rb, line 31</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">configuration</span>
  <span class="ruby-identifier">application</span>.<span class="ruby-identifier">config</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-c-env">
            
              <b>env</b>()
            
            <a href="Rails.html#method-c-env" name="method-c-env" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-c-env_source')" id="l_method-c-env_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/ceb3b8717beb9818fbfbab429a8aa697591e184a/railties/lib/rails.rb#L55" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-c-env_source" class="dyn-source">
                <pre><span class="ruby-comment"># File railties/lib/rails.rb, line 55</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">env</span>
  <span class="ruby-ivar">@_env</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">ActiveSupport</span><span class="ruby-operator">::</span><span class="ruby-constant">StringInquirer</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;RAILS_ENV&quot;</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;RACK_ENV&quot;</span>] <span class="ruby-operator">||</span> <span class="ruby-string">&quot;development&quot;</span>)
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-c-env-3D">
            
              <b>env=</b>(environment)
            
            <a href="Rails.html#method-c-env-3D" name="method-c-env-3D" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-c-env-3D_source')" id="l_method-c-env-3D_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/ceb3b8717beb9818fbfbab429a8aa697591e184a/railties/lib/rails.rb#L59" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-c-env-3D_source" class="dyn-source">
                <pre><span class="ruby-comment"># File railties/lib/rails.rb, line 59</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">env=</span>(<span class="ruby-identifier">environment</span>)
  <span class="ruby-ivar">@_env</span> = <span class="ruby-constant">ActiveSupport</span><span class="ruby-operator">::</span><span class="ruby-constant">StringInquirer</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">environment</span>)
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-c-groups">
            
              <b>groups</b>(*groups)
            
            <a href="Rails.html#method-c-groups" name="method-c-groups" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              <p>Returns all rails groups for loading based on:</p>
<ul><li>
<p>The <a href="Rails.html">Rails</a> environment;</p>
</li><li>
<p>The environment variable RAILS_GROUPS;</p>
</li><li>
<p>The optional envs given as argument and the hash with group dependencies;</p>

<p>groups assets: [:development, :test]</p>

<p># Returns # =&gt; [:default, :development, :assets] for <a
href="Rails.html#method-c-env">::env</a> == “development” # =&gt;
[:default, :production]           for <a
href="Rails.html#method-c-env">::env</a> == “production”</p>
</li></ul>
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-c-groups_source')" id="l_method-c-groups_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/ceb3b8717beb9818fbfbab429a8aa697591e184a/railties/lib/rails.rb#L74" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-c-groups_source" class="dyn-source">
                <pre><span class="ruby-comment"># File railties/lib/rails.rb, line 74</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">groups</span>(*<span class="ruby-identifier">groups</span>)
  <span class="ruby-identifier">hash</span> = <span class="ruby-identifier">groups</span>.<span class="ruby-identifier">extract_options!</span>
  <span class="ruby-identifier">env</span> = <span class="ruby-constant">Rails</span>.<span class="ruby-identifier">env</span>
  <span class="ruby-identifier">groups</span>.<span class="ruby-identifier">unshift</span>(<span class="ruby-value">:default</span>, <span class="ruby-identifier">env</span>)
  <span class="ruby-identifier">groups</span>.<span class="ruby-identifier">concat</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;RAILS_GROUPS&quot;</span>].<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">split</span>(<span class="ruby-string">&quot;,&quot;</span>)
  <span class="ruby-identifier">groups</span>.<span class="ruby-identifier">concat</span> <span class="ruby-identifier">hash</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">k</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">v</span>.<span class="ruby-identifier">map</span>(&amp;<span class="ruby-value">:to_s</span>).<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">env</span>) }
  <span class="ruby-identifier">groups</span>.<span class="ruby-identifier">compact!</span>
  <span class="ruby-identifier">groups</span>.<span class="ruby-identifier">uniq!</span>
  <span class="ruby-identifier">groups</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-c-initialize-21">
            
              <b>initialize!</b>()
            
            <a href="Rails.html#method-c-initialize-21" name="method-c-initialize-21" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-c-initialize-21_source')" id="l_method-c-initialize-21_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/ceb3b8717beb9818fbfbab429a8aa697591e184a/railties/lib/rails.rb#L35" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-c-initialize-21_source" class="dyn-source">
                <pre><span class="ruby-comment"># File railties/lib/rails.rb, line 35</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">initialize!</span>
  <span class="ruby-identifier">application</span>.<span class="ruby-identifier">initialize!</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-c-initialized-3F">
            
              <b>initialized?</b>()
            
            <a href="Rails.html#method-c-initialized-3F" name="method-c-initialized-3F" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-c-initialized-3F_source')" id="l_method-c-initialized-3F_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/ceb3b8717beb9818fbfbab429a8aa697591e184a/railties/lib/rails.rb#L39" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-c-initialized-3F_source" class="dyn-source">
                <pre><span class="ruby-comment"># File railties/lib/rails.rb, line 39</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">initialized?</span>
  <span class="ruby-identifier">application</span>.<span class="ruby-identifier">initialized?</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-c-public_path">
            
              <b>public_path</b>()
            
            <a href="Rails.html#method-c-public_path" name="method-c-public_path" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-c-public_path_source')" id="l_method-c-public_path_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/ceb3b8717beb9818fbfbab429a8aa697591e184a/railties/lib/rails.rb#L89" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-c-public_path_source" class="dyn-source">
                <pre><span class="ruby-comment"># File railties/lib/rails.rb, line 89</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">public_path</span>
  <span class="ruby-identifier">application</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-constant">Pathname</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">application</span>.<span class="ruby-identifier">paths</span>[<span class="ruby-string">&quot;public&quot;</span>].<span class="ruby-identifier">first</span>)
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-c-root">
            
              <b>root</b>()
            
            <a href="Rails.html#method-c-root" name="method-c-root" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-c-root_source')" id="l_method-c-root_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/ceb3b8717beb9818fbfbab429a8aa697591e184a/railties/lib/rails.rb#L51" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-c-root_source" class="dyn-source">
                <pre><span class="ruby-comment"># File railties/lib/rails.rb, line 51</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">root</span>
  <span class="ruby-identifier">application</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">application</span>.<span class="ruby-identifier">config</span>.<span class="ruby-identifier">root</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-c-version">
            
              <b>version</b>()
            
            <a href="Rails.html#method-c-version" name="method-c-version" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-c-version_source')" id="l_method-c-version_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/ceb3b8717beb9818fbfbab429a8aa697591e184a/railties/lib/rails.rb#L85" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-c-version_source" class="dyn-source">
                <pre><span class="ruby-comment"># File railties/lib/rails.rb, line 85</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">version</span>
  <span class="ruby-constant">VERSION</span><span class="ruby-operator">::</span><span class="ruby-constant">STRING</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
                        </div>

    </div>
  </body>
</html>    